/*
 * MainWindow.h
 *
 *  Created on: 2012-8-28
 *      Author: yangentao@gmail.com
 */

#ifndef MAINWINDOW_H_
#define MAINWINDOW_H_
#include "../src/winui.h"

class FrameWindow;

class MainWindow: public FrameWindow {
	typedef FrameWindow Super;

public:
	MainWindow();
	virtual ~MainWindow();
public:
	HWND create(int x, int y, int width, int height);
	HMENU createMainMenu();

public:
	void onCommand(UINT cmd);
	void onCreateChildren() ;
	void onControl(UINT controlMsg, UINT controlID, HWND control);
private:
	Panel panel;
};

#endif /* MAINWINDOW_H_ */
